import request from '@/utils/request'

// 查询训练小组航道列表
export function listTrainingGroupChannel(query) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/list',
        method: 'get',
        params: query
    })
}



// 获取小组名称集合
export function getGroupNameList(query) {
    return request({
        url: '/trainingGroup/trainingGroup/getGroupNameList',
        method: 'get',
        params: query
    })
}


// 查询训练小组航道详细
export function getTrainingGroupChannel(id) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/' + id,
        method: 'get'
    })
}

// 查询训练小组航道详细
export function getTrainingGroupChannelInfo(id) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/getInfo/' + id,
        method: 'get'
    })
}

// 新增训练小组航道
export function addTrainingGroupChannel(data) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel',
        method: 'post',
        data: data
    })
}

// 修改训练小组航道
export function updateTrainingGroupChannel(data) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel',
        method: 'put',
        data: data
    })
}

// 删除训练小组航道
export function delTrainingGroupChannel(id) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/' + id,
        method: 'delete'
    })
}

// 导出训练小组航道
export function exportTrainingGroupChannel(query) {
    return request({
        url: '/trainingGroupChannel/trainingGroupChannel/export',
        method: 'get',
        params: query
    })
}

// 修改updateEnvironmental
export function updateEnvironmental(data) {
    return request({
        url: '/app/weekPlan/trainingDay/updateEnvironmental',
        method: 'post',
        data: data
    })
}